package com.yuyu.shop.api.apimodel.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @author
 * @version 1.0
 * @description: 订单创建DTO
 * @date 2022/8/4 8:52
 */
@Data
@Accessors(chain = true)
public class OrderCreateDTO {

    @NotNull(message = "店铺id不能为null")
    private Long shopId;

    @NotNull(message = "skuId不能为null")
    private Long goodsId;

    @ApiModelProperty("订单类型 1.普通订单 2.团购订单 3.限购订单 4.秒杀订单")
    @NotNull
    private Integer orderType;

    @ApiModelProperty("商品数量")
    @NotNull(message = "商品数量不能为null")
    private Integer goodsNum;

    @ApiModelProperty("userId")
    private Long userId;
}
